


#ifndef _BSP_RS485_H_
#define _BSP_RS485_H_

#include <stdint.h>

#define RS485_DIR_IN	0
#define RS485_DIR_OUT	1

void BSP_RS485_Init(void);
void BSP_RS485_SetDir(uint8_t dir);
void BSP_RS485_SendBuf(uint8_t buf[], uint32_t len);
void BSP_RS485_RawSend(uint8_t buf[], uint32_t len);
void BSP_RS485_RawSendByte(uint8_t ch);
void BSP_RS485_SetBaud(uint32_t baud);

#endif



